package model;

import java.util.ArrayList;
import java.util.List;

/**
 * This a column that contains data and has a name.
 * @author Amay
 *
 */
public class DataColumn {

    private String myName;
    private List<String> myElements;

    DataColumn(String name) {
        myName = name;
        myElements = new ArrayList<String>();
    }

    protected void addData(String s) {
        myElements.add(s);
    }

    protected List<String> getData() {
        return myElements;
    }

    protected String getName() {
        return myName;
    }
}
